package com.ruoyi.mk.service.impl;

import com.ruoyi.mk.domain.MkPrice;
import com.ruoyi.mk.mapper.MkPriceMapper;
import com.ruoyi.mk.service.IMkPriceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 南疆普快品类价格查询Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-13
 */
@Service
public class MkPriceServiceImpl implements IMkPriceService
{
    @Autowired
    private MkPriceMapper mkPriceMapper;

    /**
     * 查询南疆普快品类价格查询
     * 
     * @param id 南疆普快品类价格查询主键
     * @return 南疆普快品类价格查询
     */
    @Override
    public MkPrice selectMkPriceById(Long id)
    {
        return mkPriceMapper.selectMkPriceById(id);
    }

    /**
     * 查询南疆普快品类价格查询列表
     * 
     * @param mkPrice 南疆普快品类价格查询
     * @return 南疆普快品类价格查询
     */
    @Override
    public List<MkPrice> selectMkPriceList(MkPrice mkPrice)
    {
        return mkPriceMapper.selectMkPriceList(mkPrice);
    }

    /**
     * 新增南疆普快品类价格查询
     * 
     * @param mkPrice 南疆普快品类价格查询
     * @return 结果
     */
    @Override
    public int insertMkPrice(MkPrice mkPrice)
    {
        return mkPriceMapper.insertMkPrice(mkPrice);
    }

    /**
     * 修改南疆普快品类价格查询
     * 
     * @param mkPrice 南疆普快品类价格查询
     * @return 结果
     */
    @Override
    public int updateMkPrice(MkPrice mkPrice)
    {
        return mkPriceMapper.updateMkPrice(mkPrice);
    }

    /**
     * 批量删除南疆普快品类价格查询
     * 
     * @param ids 需要删除的南疆普快品类价格查询主键
     * @return 结果
     */
    @Override
    public int deleteMkPriceByIds(Long[] ids)
    {
        return mkPriceMapper.deleteMkPriceByIds(ids);
    }

    /**
     * 删除南疆普快品类价格查询信息
     * 
     * @param id 南疆普快品类价格查询主键
     * @return 结果
     */
    @Override
    public int deleteMkPriceById(Long id)
    {
        return mkPriceMapper.deleteMkPriceById(id);
    }
}
